FROM registry.gitee-ai.local/base/iluvatar-corex:3.2.0-sd3-bi100

RUN apt-get update && apt-get install -y net-tools ffmpeg libnss3 libpcre3 libpcre3-dev build-essential software-properties-common python3.9 python3-pip git git-lfs curl wget openssl libssl-dev
RUN pip install requests
WORKDIR /root

COPY . .

RUN chmod 600 /root/.ssh/id_rsa

RUN sh install_nginx.sh

RUN service ssh start

EXPOSE 7860

CMD ["/usr/local/nginx/sbin/nginx", "-g", "daemon off;"]